/*
** my_revstr.c for Jour_06 in /u/all/noret_a/rendu/piscine/Jour_06
**
** Made by christophe noret
** Login   <noret_a@epitech.net>
**
** Started on  Mon Oct  8 10:09:05 2012 christophe noret
** Last update Wed Oct 10 15:06:44 2012 christophe noret
*/

char	*my_revstr(char *str)
{
  int	i;
  int	str_len;
  char	tmp;

  str_len = my_strlen(str);
  i = 0;
  if (str_len > 0)
    {
      while (i < (str_len / 2))
	{
	  tmp = str[i];
	  str[i] = str[(str_len - 1) - i];
	  str[(str_len - i) - 1] = tmp;
	  i++;
	}
    }
  return (str);
}
